representing a function using power series